package com.bc.bcquartzservice;

import com.bc.commoncore.util.SpringBeanHelper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) throws Exception {
        ApplicationContext contentApp = new ClassPathXmlApplicationContext("applicationContext.xml");
        SpringBeanHelper.setApplicationContext(contentApp);
        /* 加载定时任务 */
        QuartzJobHelper.init(ChildJob.class, "bcquartzservice");
        // 生成PID
        QuartzJobHelper.writePID();
    }
}
